<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<th:block th:include="tpl :: common_head()"></th:block>
	<title>产废单位平台数据信息导出</title>
</head>
<body th:with="entrance='/system/excelImport/indexcf'">
<th:block th:replace="tpl :: common_body(~{::.main-right})">
	<div class="main-right">
		<h1 class="main-right-h1">产废单位数据信息导出</h1>
		<form class="form" method="POST" onsubmit="return check()">
			<fieldset>
				<legend>信息</legend>
				<dl>
					<dt>产废单位名称</dt>
					<dd>

						<select id="orgId" name="orgId">
							<option th:each="obj : ${orgList}" th:value="${obj.id}" th:text="${obj.orgName}"></option>
						</select>
					</dd>
				</dl>

			</fieldset>
			<input type="button" value="查询" onclick="find()" />
			<input type="button" value="导出" onclick="send()" />
			<table class="table">
				<thead>
				<tr>
					<th>日期</th>
					<th>接收经营单位</th>
					<th>废物类别</th>
					<th>废物名称</th>
					<th>废物类别</th>
					<th>运输公司</th>
					<th>联单编号</th>
					<th>平台发布数量</th>
					<th>发布信息人员</th>
					<th>确认接收数量</th>
				</tr>
				<tr th:each=" list : ${cflist}">
					<th th:text="${list.create_date}"></th>
					<th th:text="${list.manage_org_name}"></th>
					<th th:text="${list.waste_type_name}"></th>
					<th th:text="${list.waste_name}"></th>
					<th th:text="${list.transport_org_name}"></th>
					<th th:text="${list.waste_name}"></th>
					<th th:text="${list.code}"></th>
					<th th:text="${list.weight}"></th>
					<th th:text="${list.send_org_member}"></th>
					<th th:text="${list.receive_weight}"></th>
				</tr>
				</thead>
			</table>

		</form>
	</div>
</th:block>
<script type="text/javascript">
	function find() {
		var orgId = $('#orgId').val();
		console.log(orgId);
		window.location.href="?orgId=" + orgId;
	}
	function send() {
		var orgId = $('#orgId').val();
		window.open("export?orgId=" + orgId + "&type=0");
	}
	$(document).ready(function () {
		$('#orgId').select2();
	});

</script>
</body>
</html>
